import { get, post } from '../utls/request'
// 菜单列表
export const menulist = (params) => get('/menulist', params)
// 菜单添加
export const menuadd = (params) => post('/menuadd', params)

// 菜单删除
export const menudelete = (params) => post('/menudelete', params)
// 菜单 回显 获取一条数据
export const menuinfo = (params) => get('/menuinfo', params)

export const menuedit = (params) => post('/menuedit', params)
// 角色管理  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 角色添加

export const roleadd = (params) => post('/roleadd', params)
// 角色列表
export const roleList = () => get('/rolelist')
// 删除
export const roleDelete = (params) => post('/roledelete', params)
// 修改
export const roleedit = (params) => post('/roleedit', params)
// 角色数据 获取 一条
export const roleinfo = (params) => get('/roleinfo', params)
// 管理元添加 ~~~~~~~~~~~~~~~~~~~~~~~~~~
export const useradd = (params) => post('/useradd', params)

export const userlist = (params) => get('/userlist', params)

export const usercount = (params) => get('/usercount', params)

export const userinfo = (params) => get('/userinfo', params)

export const useredit = (params) => post('/useredit', params)

export const userdelete = (params) => post('/userdelete', params)

export const userlogin = (params) => post('/userlogin', params)

export const catelist = (params) => get('/catelist', params)

export const cateadd = (params, isFile = true) => post('/cateadd', params, isFile)

export const cateDelete = (params) => post('/catedelete', params)

export const cateInfo = (params) => get('/cateinfo', params)

export const cateEdit = (params, isFile = true) => post('/cateedit', params, isFile)

export const specsadd = (params) => post('/specsadd', params)
export const specslist = (params) => get('/specslist', params)

export const specsdelete = (params) => post('/specsdelete', params)

export const specsinfo = (params) => get('/specsinfo', params)

export const specsedit = (params) => post('/specsedit', params)
export const specscount = () => get('/specscount')
// 商品管理

export const goodsadd = (params, isFile = true) => post('/goodsadd', params, isFile)
// 商品列表

export const goodslist = (params) => get('/goodslist', params)
// 获取总条数
export const goodscount = () => get('/goodscount')
//  删除
export const goodsdelete = (params) => post('/goodsdelete', params)

export const goodsinfo = (params) => get('/goodsinfo', params)
// 编辑

export const goodsedit = (params) => post('/goodsedit', params)

// 轮播图
export const banneradd = (params, isFile = true) => post('/banneradd', params, isFile)

export const bannerlist = (params) => get('/bannerlist', params)

// 删除
export const bannerdelete = (params) => post('/bannerdelete', params)

export const bannerinfo = (params) => get('/bannerinfo', params)

export const banneredit = (params, isFile = true) => post('/banneredit', params, isFile)
//  秒杀
export const seckadd = (params) => post('/seckadd', params)
// 添加

// 列表
export const secklist = (params) => get('/secklist', params)
// 获取一条
export const seckinfo = (params) => get('/seckinfo', params)

export const seckedit = (params) => post('/seckedit', params)

export const memberlist = (params) => get('/memberlist', params)
export const memberinfo = (params) => get('/memberinfo', params)
export const memberedit = (params) => post('/memberedit', params)
